<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org"
	   xmlns:widget="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
	<title></title>
	<link href="/favicon.ico" rel="icon" />
	<link href="/asset/css/admin.css" rel="stylesheet" />
	<script src="/asset/layui/layui.js?v=1.0.0"></script>
	<script src="/asset/js/common.js?v=1.0.0"></script>
	<style id='panda-theme-color'></style>
</head>
<body  class="theme-panda">
<div style="padding: 20px;background-color: white;">
	<form class="layui-form model-form" action="" style="width:80%;">
		<input name="id" type="hidden" th:value="${info['id']}?:0" />

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">用户名：</label>
				<div class="layui-input-inline">
					<input name="username" th:readonly="${info['id']}?true:false" th:value="${info['username']}" lay-verify="required" autocomplete="off" placeholder="请输入登录用户名" class="layui-input" type="text" />
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">密码：</label>
				<div class="layui-input-inline">
					<input name="password" autocomplete="off" placeholder="请输入登录密码" class="layui-input" type="password" />
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">真实姓名：</label>
				<div class="layui-input-inline">
					<input name="realname" th:value="${info['realname']}" autocomplete="off" placeholder="请输入真实姓名 非必填" class="layui-input" type="text" />
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">手机号码：</label>
				<div class="layui-input-inline">
					<input name="mobile" th:value="${info['mobile']}" lay-verify="required|phone" placeholder="请输入手机号码" autocomplete="off" class="layui-input" type="tel" />
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">电子邮箱：</label>
				<div class="layui-input-inline">
					<input name="email" th:value="${info['email']}" lay-verify="required|email" placeholder="请输入邮箱" autocomplete="off" class="layui-input" type="text" />
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">部门：</label>
				<div class="layui-input-inline">
					<widget:complexSelect name="deptId|0|部门|name|id"
										  sql="SELECT id,`name` FROM sys_dept WHERE pid=? AND mark=1 ORDER BY sort ASC;"
										  th:value="${info['deptId']}?:0"/>
					<!--select name="deptId" id="deptId" lay-verify="required">
						<option value=""></option>
						<option th:each="item : ${depts}"
								th:selected="${item.id eq info['deptId']}"
								th:value="${item.id}"
								th:text="${item.name}"></option>
					</select-->

				</div>
			</div>
		</div>
		<div class="layui-form-item layui-form-text" style="width:625px;">
			<label class="layui-form-label">用户角色：</label>
			<div class="layui-input-block">
				<!--th:block th:each="v : ${roles}">
					<input type="radio" name="roleId" th:checked="${v['id'] == info['roleId']}" th:disabled="${v['id'] == 1}" th:value="${v['id']}" th:title="${v['name']}" lay-filter="radioSelect">
				</th:block-->

				<widget:radioSelect name="roleId|name|id"
									sql="SELECT id,`name` FROM sys_auth_group WHERE mark=1 ORDER BY sort ASC;"
									th:value="${info['roleId']}?:[]"/>
			</div>
		</div>


		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">状态：</label>
				<div class="layui-input-inline">
					<input type="checkbox" name="status" id="status" th:value="${info['status']}" lay-skin="switch" lay-text="正常|禁用" lay-filter="status" th:checked="${info['status'] == 1}">
				</div>
			</div>
		</div>

		<div class="layui-form-item" style="width:625px;">
			<label class="layui-form-label">备注：</label>
			<div class="layui-input-block">
				<textarea name="note" placeholder="请输入备注" class="layui-textarea"></textarea>
			</div>
		</div>
		<widget:btnSubmit name="submit|立即保存,close|关闭"/>
		<!--div class="layui-form-item layui-table-tool-temp model-form-footer" style="margin-top: 40px;">
			<label class="layui-form-label"></label>
			<button class="layui-btn layui-btn-primary" lay-filter="submitForm" lay-submit="">立即保存</button>
			<button class="layui-btn " type="button" pa-event="closeDialog">关&nbsp;&nbsp;&nbsp;&nbsp;闭</button>
		</div-->
	</form>
</div>
<!-- 引入脚部 -->
<footer>
	<!-- JS部分 -->
	<script type="text/javascript">
        layui.use(['func','form','tableSelect'], function () {

        });
	</script>
</footer>
</body>
</html>